<form action = 'setup.php' method = 'post'>
    <table>
        <tr><td>Host</td><td><input type="text" name = "databaseHost" size = "30"></td></tr>
        <tr><td>DB Name</td><td><input type="text" name = "databaseName" size = "30"></td></tr>
        <tr><td>User Name DB</td><td><input type="text" name = "databaseUser" size = "30"></td></tr>
        <tr><td>Password DB</td><td><input type="text" name = "databasePassword" size = "30"></td></tr>        
        <tr><td></td><td><input type = "submit" value = "Create Admin Menu" size = "30"></td></tr>
    </table>
</form>
<?php
if ($_POST['databaseHost'] != null) {
    echo "<a href = 'index.php'>Menu admin has been created. Click to enter</a><br><br>";
    require('Lib/File Manager.php');
    require('AdminGenerator.php');
    $host = $_POST['databaseHost'];
    $user = $_POST['databaseUser'];
    $password = $_POST['databasePassword'];
    $databaseName = $_POST['databaseName'];
    $ag = new AdminGenerator($host, $user, $password, $databaseName);
    $ag->createDatabaseModel();
    $ag->createModel();
    $ag->createController();
    $ag->createHeader();
    $ag->createIncluderMenu();
    $ag->createIncluderPageView();
    $ag->createDaftarView();
    $ag->createFormView();
}
?>